#ifndef FOUNDATION_DBMS_DEVICE_H
#define FOUNDATION_DBMS_DEVICE_H
#include "dbms.h"

namespace dbms {

class DbmsDevice : public Dbms<Device_t> {
public:
	DbmsDevice(const std::string &dbFile);
	void Save(const Device_t &dc);
	void Get(std::function<void(const Device_t &dc)> onGet);
	std::vector<Device_t> Get();

protected:
	virtual std::string Serialize(const Device_t &t) override;
	virtual Device_t Deserialize(const std::string &data) override;
};
} // namespace dbms

#endif